Global Index
HTML5 JS API Index > SVG Tutorials & Specs

SVGGradientElement

Extends SVGElement. Implements SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes.

Extended by SVGLinearGradientElement, SVGRadialGradientElement, SVGLinearGradientElement, SVGRadialGradientElement
Properties
const unsigned short
SVG_SPREADMETHOD_PAD = 1
Corresponds to value 'pad'.
const unsigned short
SVG_SPREADMETHOD_REFLECT = 2
Corresponds to value 'reflect'.
const unsigned short
SVG_SPREADMETHOD_REPEAT = 3
Corresponds to value 'repeat'.
const unsigned short
SVG_SPREADMETHOD_UNKNOWN = 0
The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
const unsigned short
SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2
Corresponds to value 'objectBoundingBox'.
const unsigned short
SVG_UNIT_TYPE_UNKNOWN = 0
The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
const unsigned short
SVG_UNIT_TYPE_USERSPACEONUSE = 1
Corresponds to value 'userSpaceOnUse'.
SVGAnimatedString
className
Corresponds to attribute ‘class’ on the given element.
SVGAnimatedBoolean
externalResourcesRequired
Corresponds to attribute ‘externalResourcesRequired’ on the given element. Note that the SVG DOM defines the attribute ‘externalResourcesRequired’ as being of type SVGAnimatedBoolean, whereas the SVG language definition says that ‘externalResourcesRequired’ is not animated.
SVGAnimatedTransformList
gradientTransform
Corresponds to attribute ‘gradientTransform’ on the given element.
SVGAnimatedEnumeration
gradientUnits
Corresponds to attribute ‘gradientUnits’ on the given element. Takes one of the constants defined in SVGUnitTypes.
SVGAnimatedString
href
Corresponds to attribute ‘xlink:href’ on the given element.
SVGAnimatedEnumeration
spreadMethod
Corresponds to attribute ‘spreadMethod’ on the given element. One of the Spread Method Types defined on this interface.
CSSStyleDeclaration
style
Corresponds to attribute ‘style’ on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
Operations
CSSValue
getPresentationAttribute(DOMString name)
Returns the base (i.e., static) value of a given presentation attribute as an object of type CSSValue. The returned object is live; changes to the objects represent immediate changes to the objects to which the CSSValue is attached. Note: The getPresentationAttribute method is deprecated, and may be dropped from future versions of the SVG specification.